<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="LibroDiario.aspx.cs" Inherits="Gestion_IngresoOC" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="contenido" Runat="Server">
    <script language="javascript" type="text/javascript">
function intOnly(i) 
{
if(i.value.length>0) 
{
i.value = i.value.replace(/[^\d]+/g, ''); 
}
}
</script>

    &nbsp;<table width="100%">
        <tr>
            <td>
                <asp:DataList ID="dtlAsiento" runat="server">
                    <HeaderTemplate>
                        <table width="650">
                            <tr>
                                <td style="width: 150px; text-align: left; border-bottom: gainsboro thin solid;">
                Fecha</td>
                                <td style="width: 150px; text-align: left; border-bottom: gainsboro thin solid;">
                                    Cuenta</td>
                                <td style="width: 150px; text-align: left; border-bottom: gainsboro thin solid;">
                                    Debe</td>
                                <td style="width: 150px; text-align: left; border-bottom: gainsboro thin solid;">
                                    Haber</td>
                            </tr>
                        </table>
                    </HeaderTemplate>
                    <ItemTemplate><table width="650" style="margin: 0px">
                        <tr>
                            <td style="width: 150px; border-bottom: gainsboro thin solid; text-align: left;" align="left" valign="top">
                                    <asp:Label ID="lblFecha" runat="server" Text='<%# Eval("Fecha","{0:dd/MM/yyyy}") %>'
                                        Width="100%"></asp:Label></td>
                            <td style="width: 500px; border-bottom: gainsboro thin solid; text-align: left;" colspan="3">
                                    <asp:DataList ID="dtlDesglose" runat="server">
                                        <ItemTemplate>
                                            <table width="500">
                                                <tr>
                                                    <td style="width: 200px; text-align: left">
                                                        <asp:Label ID="lblCuentaConbtable" runat="server" Text='<%# Eval("CuentaContable.Descripcion") %>'
                                                            Width="100%"></asp:Label></td>
                                                    <td style="width: 150px; text-align: right">
                                                        <asp:Label ID="lblDebe" runat="server" Text='<%# Eval("Debe") %>' Width="100%"></asp:Label></td>
                                                    <td style="width: 150px; text-align: right">
                                                        <asp:Label ID="lblHaber" runat="server" Text='<%# Eval("Haber") %>' Width="100%"></asp:Label></td>
                                                </tr>
                                            </table>
                                        </ItemTemplate>
                                    </asp:DataList><asp:Label ID="lblId" runat="server" Text='<%# Eval("Id") %>' Visible="False" Width="100%"></asp:Label>
                                <asp:Label ID="lblDetalle" runat="server" Text='<%# Eval("Detalle") %>' Width="100%" Visible="False"></asp:Label></td>
                        </tr>
                    </table>
                    </ItemTemplate>
                </asp:DataList>&nbsp;
            </td>
        </tr>
    </table>
    &nbsp;
    &nbsp;
    &nbsp;&nbsp;
</asp:Content>

